import Vue from 'vue'
import App from './App.vue'
import { utils, host, config } from './utils'
import router from './router'
import ElementUI from 'element-ui';
import './router/routerAction'
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'
// import './assets/font/v.css'
import "./assets/font/iconfont.css";
import * as echarts from "echarts/core";
import { LineChart, BarChart } from "echarts/charts";
import { TitleComponent, LegendComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent, ToolboxComponent, } from "echarts/components";
import { LabelLayout, UniversalTransition } from "echarts/features";
import { CanvasRenderer } from "echarts/renderers";
echarts.use([TitleComponent, LegendComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent, LabelLayout, UniversalTransition, CanvasRenderer, LineChart, BarChart, ToolboxComponent]);

Vue.prototype.$echarts = echarts;
Vue.prototype.$host = host.baseUrl

Vue.prototype.$utils = utils
Vue.prototype.$config = config
Vue.config.productionTip = false
Vue.use(ElementUI);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

